package com.aierkeji.b2c.entity.vo;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aierkeji.b2c.entity.constant.OrderStatus;
import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name = "akj_order_record")
public class OrderListVo {
	@Id
	private String id;
	@Column(length = 32, name = "order_no",unique=true)
	private String orderNo = "";
	
	@Column(name = "client", length = 255)
	private String client;

	@Column(length = 64, name = "product_name")
	private String productName = "";
	
	@Column(name = "location", length = 255)
	private String location = "";
	
	@Column(name = "phone", length = 11)
	private String phone = "";
	
	@Column(name = "order_status", length = 12)
	@Enumerated(EnumType.STRING)
	private OrderStatus orderStatus ;

	@Column(columnDefinition = "datetime")
	private Timestamp borrowTime;
	
	@Column(name = "delivery_company", length = 255)
	private String deliveryCompany;

	@Column(name = "delivery_order", length = 50)
	private String deliveryOrder;

	@Column(name = "delivery_time", columnDefinition = "datetime")
	private Timestamp deliveryTime;
	
	@Column( name = "is_delete")
	private Boolean isDelete;//
	
	@Column(name = "ali_pay_user_id", length = 32)
	private String aliPayUserId;// 支付宝用户id
	
	@Column(length = 32, name = "life_id")
	private String lifeId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	
	public OrderStatus getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(OrderStatus orderStatus) {
		this.orderStatus = orderStatus;
	}
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	public Timestamp getBorrowTime() {
		return borrowTime;
	}

	public void setBorrowTime(Timestamp borrowTime) {
		this.borrowTime = borrowTime;
	}

	public String getDeliveryCompany() {
		return deliveryCompany;
	}

	public void setDeliveryCompany(String deliveryCompany) {
		this.deliveryCompany = deliveryCompany;
	}

	public String getDeliveryOrder() {
		return deliveryOrder;
	}

	public void setDeliveryOrder(String deliveryOrder) {
		this.deliveryOrder = deliveryOrder;
	}

	public Timestamp getDeliveryTime() {
		return deliveryTime;
	}

	public void setDeliveryTime(Timestamp deliveryTime) {
		this.deliveryTime = deliveryTime;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public String getAliPayUserId() {
		return aliPayUserId;
	}

	public void setAliPayUserId(String aliPayUserId) {
		this.aliPayUserId = aliPayUserId;
	}

	public String getLifeId() {
		return lifeId;
	}

	public void setLifeId(String lifeId) {
		this.lifeId = lifeId;
	}

	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

}
